﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" 
					 targetNamespace="urn:ItemData-mapping"
					 xmlns="urn:ItemData-mapping"
					 xmlns:xs="http://www.w3.org/2001/XMLSchema">
	
	<xs:element name="Mappings">
		<xs:complexType>
			<xs:sequence>
				<xs:choice maxOccurs="unbounded">
					<xs:element name="Mapping" type="mappingType"/>
					<xs:element name="Mapping3D" type="mapping3DType"/>
				</xs:choice>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	
	<xs:complexType name="axisType">
		<xs:attribute name="xsd-type" type="xs:string" use="required" />
		<xs:attribute name="clr-type" type="xs:string" use="optional" />
		<xs:attribute name="type-string" type="xs:string" use="required" />
	</xs:complexType>
	
	<xs:complexType name="mappingType">
		<xs:sequence>
			<xs:element name="XAxis" type="axisType"/>
			<xs:element name="YAxis" type="axisType"/>
		</xs:sequence>
	</xs:complexType>
	
	<xs:complexType name="mapping3DType">
		<xs:sequence>
			<xs:element name="XAxis" type="axisType"/>
			<xs:element name="YAxis" type="axisType"/>
			<xs:element name="ZAxis" type="axisType"/>
		</xs:sequence>
	</xs:complexType>
</xs:schema>